package pack0618;

public class Demo1 {
    public static void main(String[] args){
        int s=1;
        for (s=1; s<1000;s++)
        if (s%3==2&&s%4==3&&s%5==4&&s%7==0) {
            break;
         }
        System.out.println(s);
        }

    }

